#!/bin/bash

checkDownload() {
    mirrorLink=http://mirrors.linuxeye.com/oneinstack/src
    pushd ${oneinstack_dir}/src
    
    # Web
        src_url=https://mirrors.tuna.tsinghua.edu.cn/OpenBSD/LibreSSL/libressl-${libressl_version}.tar.gz && Download_src
        src_url=https://github.com/pagespeed/ngx_pagespeed/archive/v${nps_version}-beta.zip && Download_src
        src_url=https://openresty.org/download/openresty-${openresty_version}.tar.gz && Download_src
        src_url=${mirrorLink}/pcre-${pcre_version}.tar.gz && Download_src
    
    if [[ "${Ubuntu_version}" =~ ^14$|^15$ ]];then
        echo "Download bison for Ubuntu..."
        src_url=http://ftp.gnu.org/gnu/bison/bison-${bison_version}.tar.gz && Download_src
    fi
    
    popd
}
